
$(document).ready(function() {
    
    // Valido el formulari de datos
    $("#formhotel").validate({
        rules: {
            hotelnom: "required",
            hotelweb: "required",
            hotelmail: {
                required: true,
                email: true
            },
            hoteltel: "required",
            "idiomes[]": "required"
        },
        messages: {
            hotelnom: "Campo obligatorio",
            hotelweb: "Campo obligatorio",
            hotelmail: "Campo obligatorio",
            hoteltel: "Campo obligatorio",
            "idiomes[]": "Campo obligatorio"
        } 
    });
    
});